package com.zbkj.common.request;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zbkj.common.model.shop.EbGroupPurchaseBusinessHours;
import com.zbkj.common.model.shop.EbGroupPurchaseGoods;
import com.zbkj.common.model.shop.EbGroupPurchaseShop;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 限时团购商品表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "限时团购商品", description = "限时团购商品表")
public class EbGroupPurchaseRequest implements Serializable {

    private static final long serialVersionUID = -3242646941692582211L;
    @ApiModelProperty(value = "团购ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商户id")
    private Integer merId;

    @ApiModelProperty(value = "商户名称")
    private String merName;

    @ApiModelProperty(value = "商家名称")
    private String shopName;
    @ApiModelProperty(value = "检索商家id")
    private Integer  shopId;

    @ApiModelProperty(value = "团购商品名称")
    private String name;

    @ApiModelProperty(value = "精简标题")
    private String title;

    @ApiModelProperty(value = "商品原价")
    private BigDecimal originalPrice;

    @ApiModelProperty(value = "团购价格")
    private BigDecimal groupPrice;

    @ApiModelProperty(value = "优惠购买数量")
    private Integer discountsNum;

    @ApiModelProperty(value = "商品类目ID")
    private Integer categoryId;

    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    @ApiModelProperty(value = "商品库存")
    private Integer stock;
    @ApiModelProperty(value = "是否查询库存预警")
    private Integer isStock;

    @ApiModelProperty(value = "库存预警值")
    private Integer stockWarning;

    @ApiModelProperty(value = "单团最大份数(单个账户购买上限)")
    private Integer maxPerUser;
    /**
     * 是否删除
     */
    private Integer isDelete;
    private int salesVolume;

    @ApiModelProperty(value = "商品列表封面图URL")
    private String shopListImage;

    @ApiModelProperty(value = "商品主页banner图URL")
    private List<String> bannerImageList;

    @ApiModelProperty(value = "商品主页banner视频URL")
    private String bannerVideo;

    @ApiModelProperty(value = "广告载体引导页视频URL")
    private String guideVideo;

    @ApiModelProperty(value = "适用店铺类型(0-通用，1-指定店铺)")
    private Boolean shopType;

    @ApiModelProperty(value = "备注(如免费WIFI停车等)")
    private String notes;

    @ApiModelProperty(value = "详情图URL列表(多张逗号区分)")
    private List<String> detailImageList;

    @ApiModelProperty(value = "有效期 天,永久-1")
    private String validityPeriod;

    @ApiModelProperty(value = "过期自动退(0-否，1-是)")
    private Boolean autoRefundExpired;

    @ApiModelProperty(value = "随时退(0-否，1-是)")
    private Boolean anytimeRefund;

    @ApiModelProperty(value = "使用须知(如可堂食，可打包等)")
    private String usageNotes;
    private String remarks;

    @ApiModelProperty(value = "状态(0-下架，1-上架)")
    private Boolean status;
    /**
     * 是否包含全部店铺
     */
    private Integer isAllShop;
    @ApiModelProperty(value = "审核状态(0-待审核，1-已审核，2已拒绝)")
    private Integer checkStatus;
    private int payNum;
    private int placementNum;
    private int scanCodeNum;
    private int conversionRate;
    private int sortNum;
    private Integer page;
    private Integer limit;

    private List<EbGroupPurchaseGoods> goodsList;
    private List<EbGroupPurchaseShop> groupPurchaseShopList;
    private List<EbGroupPurchaseBusinessHours> groupPurchaseBusinessHoursList;
}
